#ifndef BASEPARSEPACKET_H
#define BASEPARSEPACKET_H

#include <QByteArray>
#include <QObject>

class BaseProtocolData;
class BaseParsePacket : public QObject
{
    Q_OBJECT
public:
    BaseParsePacket(BaseProtocolData &data, QObject *parent = nullptr);
    virtual ~BaseParsePacket();

    virtual void parse() = 0;

signals:
    void parseCompleted(int id, const QVariant &data);

protected:
    BaseProtocolData    *m_d = nullptr;
};

#endif // BASEPARSEPACKET_H
